<div class="content contact" id="page-body">
    <h1>Free Market Appraisal - Rental</h1>
    <?php if(!empty($usermessage)){ ?>
    <div id="msgContainer">
        <div id="msgdesc-<?php echo $usermessage[0] ?>"><?php if (isset($usermessage)) echo $usermessage[1]; ?></div>
    </div>
    <?php } ?>
    <form class="cform appraisal-sale" method="post" id="appraisal-sale-rent">
        <div class=" form clearfix" id="appraisal-request-form">
            <div id="form-error-msg"></div>

            <ol class="cf-ol">
                <li class="textonly">
                    <h2 class="gogecko-orange">Select Your Suburb</h2>
                </li>
                <li class="">
                    <label for="form-suburbs"><span>Suburb*</span></label><br /> 
                    <input type="text" aria-haspopup="true" aria-autocomplete="list" role="textbox" autocomplete="off"
                           id="form-suburbs" class="single ui-autocomplete-input" value="<?php echo!empty($post['suburb']) ? $post['suburb'] : '' ?>" name="suburb" placeholder="Enter Suburb"
                           onfocus="clearField(this)" onblur="setField(this)" />
                </li>
                <li class="textonly">
                    <h2 class="gogecko-orange">Applicant Details</h2>
                </li>
                <li class="">
                    <label for="name"><span>Your Name * </span></label><br /> 
                    <input type="text" id="name" class="single fldrequired" placeholder="Enter Name" value="<?php echo!empty($post['name']) ? $post['name'] : '' ?>" name="name"
                           onfocus="clearField(this)" onblur="setField(this)" />
                    <span class="reqtxt"></span>
                </li>
                <li class="">
                    <label for="phone"><span>Contact Number * </span></label><br /> 
                    <input type="text" id="phone" class="single fldrequired" placeholder="Enter Phone Number"  value="<?php echo!empty($post['phone']) ? $post['phone'] : '' ?>" name="phone"
                           onfocus="clearField(this)" onblur="setField(this)" />
                    <span class="reqtxt"></span>
                </li>
                <li class="">
                    <label for="mobile"><span>Mobile </span></label><br /> 
                    <input type="text" id="mobile" class="single" placeholder="Enter Mobile Number" value="<?php echo!empty($post['mobile']) ? $post['mobile'] : '' ?>" name="mobile"
                           onfocus="clearField(this)" onblur="setField(this)" />
                </li>
                <li class="">
                    <label for="emailAddress"><span>Email * </span><br /></label>
                    <input type="text" id="emailAddress" class="single fldemail fldrequired" placeholder="Enter Email Address" value="<?php echo!empty($post['email']) ? $post['email'] : '' ?>" name="email"
                           onfocus="clearField(this)" onblur="setField(this)" />
                    <span class="emailreqtxt"></span>
                </li>
            </ol>

        </div>

        <div class=" form clearfix" id="appraisal-request-form">
            <div id="form-error-msg"></div>
            <ol class="cf-ol">
                <li class="textonly">
                    <h2 class="gogecko-orange">Property Address</h2>
                </li>
                <li class="">
                    <label for="address"><span>Address * </span></label><br /> 
                    <input type="text" id="address-street" class="single" placeholder="Number and Street Name"  value="<?php echo!empty($post['address']) ? $post['address'] : '' ?>" name="address"
                           onfocus="clearField(this)" onblur="setField(this)" />
                </li>
                <li class="">
                    <input type="text" id="address-suburb" class="single" placeholder ="Suburb, State and Post Code" value="<?php echo!empty($post['suburb']) ? $post['suburb'] : '' ?>" name="address_suburb"
                           onfocus="clearField(this)" onblur="setField(this)" />
                </li>
                <li class="textonly">
                    <h2 class="gogecko-orange">Property Details</h2>
                </li>
                <li class="">
                    <label for="propertyType"><span> Type </span></label><br /> 
                    <select name="propertyType" id="propertyType" name="property" class="cformselect fldrequired">
                        <option <?php echo (!empty($post['propertyType']) && ($post['propertyType'] == 'any')) ? 'Selected' : '' ?> value="any">Any</option>
                        <option <?php echo (!empty($post['propertyType']) && ($post['propertyType'] == 'Acreage/Semi Rural')) ? 'Selected' : '' ?> value="Acreage/Semi Rural">Acreage/Semi Rural</option>
                        <option <?php echo (!empty($post['propertyType']) && ($post['propertyType'] == 'Apartment')) ? 'Selected' : '' ?> value="Apartment">Apartment</option>
                        <option <?php echo (!empty($post['propertyType']) && ($post['propertyType'] == 'Block of Units')) ? 'Selected' : '' ?> value="Block of Units">Block of Units</option>
                        <option <?php echo (!empty($post['propertyType']) && ($post['propertyType'] == 'Colonial')) ? 'Selected' : '' ?> value="Colonial">Colonial</option>
                        <option <?php echo (!empty($post['propertyType']) && ($post['propertyType'] == 'Development')) ? 'Selected' : '' ?> value="Development">Development</option>
                        <option <?php echo (!empty($post['propertyType']) && ($post['propertyType'] == 'Duplex')) ? 'Selected' : '' ?> value="Duplex">Duplex</option>
                        <option <?php echo (!empty($post['propertyType']) && ($post['propertyType'] == 'Federation')) ? 'Selected' : '' ?> value="Federation">Federation</option>
                        <option <?php echo (!empty($post['propertyType']) && ($post['propertyType'] == 'Home &amp; Office')) ? 'Selected' : '' ?> value="Home &amp; Office">Home &amp; Office</option>
                        <option <?php echo (!empty($post['propertyType']) && ($post['propertyType'] == 'House')) ? 'Selected' : '' ?> value="House">House</option>
                        <option <?php echo (!empty($post['propertyType']) && ($post['propertyType'] == 'House &amp; Land Package')) ? 'Selected' : '' ?> value="House &amp; Land Package">House &amp; Land Package</option>
                        <option <?php echo (!empty($post['propertyType']) && ($post['propertyType'] == 'Investment')) ? 'Selected' : '' ?> value="Investment">Investment</option>
                        <option <?php echo (!empty($post['propertyType']) && ($post['propertyType'] == 'Project')) ? 'Selected' : '' ?> value="Project">Project</option>
                        <option <?php echo (!empty($post['propertyType']) && ($post['propertyType'] == 'Queenslander')) ? 'Selected' : '' ?> value="Queenslander">Queenslander</option>
                        <option <?php echo (!empty($post['propertyType']) && ($post['propertyType'] == 'Town House')) ? 'Selected' : '' ?> value="Town House">Town House</option>
                        <option <?php echo (!empty($post['propertyType']) && ($post['propertyType'] == 'Unit')) ? 'Selected' : '' ?> value="Unit">Unit</option>
                        <option <?php echo (!empty($post['propertyType']) && ($post['propertyType'] == 'Vacant Land')) ? 'Selected' : '' ?> value="Vacant Land">Vacant Land</option>
                        <option <?php echo (!empty($post['propertyType']) && ($post['propertyType'] == 'Villa')) ? 'Selected' : '' ?> value="Villa">Villa</option>
                        <option <?php echo (!empty($post['propertyType']) && ($post['propertyType'] == 'Waterfront - Beach')) ? 'Selected' : '' ?> value="Waterfront - Beach">Waterfront - Beach</option>
                        <option <?php echo (!empty($post['propertyType']) && ($post['propertyType'] == 'Waterfront - Canal')) ? 'Selected' : '' ?> value="Waterfront - Canal">Waterfront - Canal</option>
                    </select>
                    <span class="reqtxt"></span>
                </li>
                <li class="bedrooms">
                    <label for="Bedrooms"><span>Bedrooms </span></label><br /> 
                    <select name="bedrooms" id="Bedrooms" class="cformselect">
                        <option value="any" <?php echo (!empty($post['bedrooms']) && ($post['bedrooms'] == 'any')) ? 'Selected' : '' ?>>Any</option>
                        <option value="1" <?php echo (!empty($post['bedrooms']) && ($post['bedrooms'] == '1')) ? 'Selected' : '' ?>>1</option>
                        <option value="2" <?php echo (!empty($post['bedrooms']) && ($post['bedrooms'] == '2')) ? 'Selected' : '' ?>>2</option>
                        <option value="3" <?php echo (!empty($post['bedrooms']) && ($post['bedrooms'] == '3')) ? 'Selected' : '' ?>>3</option>
                        <option value="4" <?php echo (!empty($post['bedrooms']) && ($post['bedrooms'] == '4')) ? 'Selected' : '' ?>>4</option>
                        <option value="5" <?php echo (!empty($post['bedrooms']) && ($post['bedrooms'] == '5')) ? 'Selected' : '' ?>>5</option>
                        <option value="6" <?php echo (!empty($post['bedrooms']) && ($post['bedrooms'] == '6')) ? 'Selected' : '' ?>>6</option>
                        <option value="7" <?php echo (!empty($post['bedrooms']) && ($post['bedrooms'] == '7')) ? 'Selected' : '' ?>>7</option>
                        <option value="8" <?php echo (!empty($post['bedrooms']) && ($post['bedrooms'] == '8')) ? 'Selected' : '' ?>>8</option>
                        <option value="9" <?php echo (!empty($post['bedrooms']) && ($post['bedrooms'] == '9')) ? 'Selected' : '' ?>>9</option>
                        <option value="10" <?php echo (!empty($post['bedrooms']) && ($post['bedrooms'] == '10')) ? 'Selected' : '' ?>>10</option>
                    </select>
                    <div class="clearer"></div>
                </li>
                <li class="bathrooms">
                    <label for="Bathrooms"><span>Bathrooms </span></label><br /> 
                    <select name="bathrooms" id="Bathrooms" class="cformselect">
                        <option value="any" <?php echo (!empty($post['bathrooms']) && ($post['bathrooms'] == 'any')) ? 'Selected' : '' ?>>Any</option>
                        <option value="1" <?php echo (!empty($post['bathrooms']) && ($post['bathrooms'] == '1')) ? 'Selected' : '' ?>>1</option>
                        <option value="2" <?php echo (!empty($post['bathrooms']) && ($post['bathrooms'] == '2')) ? 'Selected' : '' ?>>2</option>
                        <option value="3" <?php echo (!empty($post['bathrooms']) && ($post['bathrooms'] == '3')) ? 'Selected' : '' ?>>3</option>
                        <option value="4" <?php echo (!empty($post['bathrooms']) && ($post['bathrooms'] == '4')) ? 'Selected' : '' ?>>4</option>
                        <option value="5" <?php echo (!empty($post['bathrooms']) && ($post['bathrooms'] == '5')) ? 'Selected' : '' ?>>5</option>
                        <option value="6" <?php echo (!empty($post['bathrooms']) && ($post['bathrooms'] == '6')) ? 'Selected' : '' ?>>6</option>
                        <option value="7" <?php echo (!empty($post['bathrooms']) && ($post['bathrooms'] == '7')) ? 'Selected' : '' ?>>7</option>
                        <option value="8" <?php echo (!empty($post['bathrooms']) && ($post['bathrooms'] == '8')) ? 'Selected' : '' ?>>8</option>
                        <option value="9" <?php echo (!empty($post['bathrooms']) && ($post['bathrooms'] == '9')) ? 'Selected' : '' ?>>9</option>
                        <option value="10" <?php echo (!empty($post['bathrooms']) && ($post['bathrooms'] == '10')) ? 'Selected' : '' ?>>10</option>
                    </select>
                    <div class="clearer"></div>
                </li>

                <li class="textonly">
                    <div class="clearer"></div>
                    <h2 class="gogecko-orange">How did you hear about us?</h2>
                </li>
                <li class="">
                    <select name="your_hear" id="how-did-you-hear" class="cformselect fldrequired" onChange="showOtherSpecify(this.value)">
                        <option value="Agent" <?php echo (!empty($post['your_hear']) && ($post['your_hear'] == 'Agent')) ? 'Selected' : '' ?>>Agent</option>
                        <option value="Radio" <?php echo (!empty($post['your_hear']) && ($post['your_hear'] == 'Radio')) ? 'Selected' : '' ?>>Radio</option>
                        <option value="Current Landlord" <?php echo (!empty($post['your_hear']) && ($post['your_hear'] == 'Current Landlord')) ? 'Selected' : '' ?>>Current Landlord</option>
                        <option value="Email" <?php echo (!empty($post['your_hear']) && ($post['your_hear'] == 'Email')) ? 'Selected' : '' ?>>Email</option>
                        <option value="Facebook" <?php echo (!empty($post['your_hear']) && ($post['your_hear'] == 'Facebook')) ? 'Selected' : '' ?>>Facebook</option>
                        <option value="Letter Box Flyer" <?php echo (!empty($post['your_hear']) && ($post['your_hear'] == 'Letter Box Flyer')) ? 'Selected' : '' ?>>Letter Box Flyer</option>
                        <option value="Newsletter" <?php echo (!empty($post['your_hear']) && ($post['your_hear'] == 'Newsletter')) ? 'Selected' : '' ?>>Newsletter</option>
                        <option value="Newpaper" <?php echo (!empty($post['your_hear']) && ($post['your_hear'] == 'Newpaper')) ? 'Selected' : '' ?>>Newpaper</option>
                        <option value="Open Home" <?php echo (!empty($post['your_hear']) && ($post['your_hear'] == 'Open Home')) ? 'Selected' : '' ?>>Open Home</option>
                        <option value="Signage" <?php echo (!empty($post['your_hear']) && ($post['your_hear'] == 'Signage')) ? 'Selected' : '' ?>>Signage</option>
                        <option value="Other" <?php echo (!empty($post['your_hear']) && ($post['your_hear'] == 'Other')) ? 'Selected' : '' ?>>Other - please specify</option>
                    </select>
                    <span class="reqtxt"></span>
                </li>
                <li id="how-did-you-hear-other-container" class="" style="display:none">
                    <input type="text" name="hear_other" id="how-did-you-hear-other" class="single" placeholder="Please specify"  value="<?php echo!empty($post['hear_other']) ? $post['hear_other'] : '' ?>"
                           onfocus="clearField(this)" onblur="setField(this)" />
                </li>
            </ol>

        </div>
        <div class="clearer"></div>
        <div class="cf-sb">
            <div style="margin: 0px 0 -17px 160px;display: inline-block"><?php echo recaptcha_get_html($public_key, $error); ?></div>
            <input type="submit" name="sendbutton3" id="sendbutton3" class="sendbutton" value="Submit" />
        </div>
    </form>
    <div class="clearer"></div>
</div>
<script>
    function showOtherSpecify(value){
        if(value=='Other') {
            $('#how-did-you-hear-other-container').fadeIn();
        } else {
            $('#how-did-you-hear-other-container').fadeOut();
        }
    }
</script>